<template>
  <div class="notelist">
    <div class="lunbo">
      <el-carousel height="380px">
        <el-carousel-item v-for="(lunbodata,index) in lunbodatas" :key="index">
          <h3 class="small">
            <el-row>
              <el-col :span="12">
                <div class="grid-content bg-purple" id="zhuan">
                  <img :src="'/api/img/' + lunbodata.img" alt class="lunboImg" />
                </div>
              </el-col>
              <el-col :span="12">
                <div class="grid-content bg-purple-light" id="zi">
                  <h2>
                    <span>{{lunbodata.title}}</span>
                  </h2>
                  <div class="guangchangPic">
                    <img :src="'/api/upload/' + lunbodata.txImg" class="txImg" alt />
                    <span class="ming">{{lunbodata.name}}</span>
                  </div>
                  <p>{{lunbodata.content}}</p>
                </div>
              </el-col>
            </el-row>
          </h3>
        </el-carousel-item>
      </el-carousel>
    </div>
    <el-row>
      <el-col :span="14">
        <div class="grid-content bg-purple">
          <Noteall></Noteall>
        </div>
      </el-col>
      <el-col :span="3">
        <div class="grid-content bg-purple"></div>
      </el-col>
      <el-col :span="7">
        <div class="grid-content bg-purple-light">
          <Paihang></Paihang>
        </div>
      </el-col>
    </el-row>
  </div>
</template>
<style lang="css" scoped>
h2{font-size: 20px;}
.el-row {
  margin-bottom: 20px;
}
.el-row:last-child {
  margin-bottom: 0;
}
.el-col {
  border-radius: 4px;
}
.grid-content {
  border-radius: 4px;
  min-height: 36px;
}
.row-bg {
  padding: 10px 0;
  background-color: #f9fafc;
}

.lunbo {
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}
.lunbo #zhong {
  height: 380px;
}
.lunbo a {
  text-decoration: none;
  color: black;
}
.guangchangPic {
  margin-bottom: 20px;
  margin-top: 20px;
}
.ming {
  font-size: 16px;
  color: rgb(140, 140, 140);
}
.lunbo p {
  width: 90%;
  font-size: 18px;
  line-height: 1.5em;
  text-indent: 2em;
}
.lunboImg {
  width: 100%;
  border-radius: 5px;
  height: 380px;
}
.txImg {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  /* margin-top: 20px; */
  margin-right: 20px;
  vertical-align: middle;
}
#zi {
  padding-top: 50px;
  padding-left: 30px;
}
</style>
<script>
import "bootstrap/dist/css/bootstrap.min.css";
import "bootstrap/dist/js/bootstrap.min.js";
import Noteall from "../components/community/Noteall";
import Paihang from "../components/community/Paihang";
export default {
  data() {
    return {
      lunbodatas: [
        {
          img: "bgclb1.jpg",
          title: "香草味水果华夫饼",
          txImg: "苏太太的小食光.jpg",
          name: "食色",
          content:
            "华夫饼，又叫格子饼、格仔饼。是一种烤饼，源于比利时，用配有专用烤盘的烤炉制成。华夫饼属于点心类，主要原料是鸡蛋和牛奶，含有丰富的蛋白质、脂肪、维生素和铁、钙、钾等人体所需要的矿物质。"
        },
        {
          img: "bgclb2.jpg",
          title: "新奥尔良烤鸡翅",
          txImg: "Aaron小厨.jpg",
          name: "COOK100@@@",
          content:
            "新奥尔良烤鸡翅正宗奥尔良风味，独具奥尔良的甜香及辣香。表面富有光泽；气味鲜香诱人，饱满的鸡肉的鲜香味，非常能够引人食欲；甜味与辣味很好的融合在一起，相互衬托，使得口味饱满，回味十足；甜味适中，辣度为中高档辣度，非常适合于喜爱奥尔良风味的人群。"
        },
        {
          img: "bgclb3.jpg",
          title: "面包烤饼",
          txImg: "杨杨美食生活.jpg",
          name: "rosejyy2000",
          content:
            "热干面（Hot dry noodles）是中国十大面条之一，也是武汉最出名的小吃之一，有多种做法，其采用碱水面，并以食油、芝麻酱、色拉油、香油、细香葱、大蒜子、萝卜丁、酸豆角、卤水汁、生抽等为辅助材料。热干面色泽黄而油润，味道鲜美，由于热量高，也可以当作主食，营养早餐，补充人体所需的能量。"
        }
      ]
    };
  },
  components: {
    Noteall,
    Paihang
  },
  methods: {}
};
</script>